package com.wy.service;

import com.wy.bean.Tarea;
import com.wy.bean.Tscenic;
import com.wy.bean.Tscenicdetail;
import com.wy.bean.Tuser;
import com.wy.dao.TscenicDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TscenicServicelmpl implements TscenicService{
    @Resource
    private TscenicDao tscenicDao;
    @Override
    public List<Tscenic> list(Tscenic tscenic) {
        return tscenicDao.list(tscenic);
    }

    @Override
    public Tscenic getTscenic(String id) {
        return tscenicDao.getTscenic(id);
    }

    @Override
    public List<Tuser> getTuser(Tuser tuser) {
        return tscenicDao.getTuser(tuser);
    }

    @Override
    public void insert(Tscenic tscenic) {
        tscenicDao.insert(tscenic);
    }

    @Override
    public void update(Tscenic tscenic) {
        tscenicDao.update(tscenic);
    }

    @Override
    public List<Tarea> getTarea(String pid) {
        return tscenicDao.getTarea(pid);
    }

    @Override
    public List<Tscenicdetail> getTscenicdetail(String id) {
        return tscenicDao.getTscenicdetail(id);
    }
}
